// GotEvent.cpp : implementation file
//

#include "stdafx.h"
#include "UIEditor_CPP.h"
#include "GotEvent.h"
#include "afxdialogex.h"


// CGotEvent dialog

IMPLEMENT_DYNAMIC(CGotEvent, CDialog)

CGotEvent::CGotEvent(CWnd* pParent /*=NULL*/)
	: CDialog(CGotEvent::IDD, pParent)
	, m_StrName(_T(""))
	, m_strValue(_T(""))
{

}

CGotEvent::~CGotEvent()
{
}

void CGotEvent::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_NAME, m_StrName);
	DDX_Text(pDX, IDC_EDIT_VALUE, m_strValue);
}


BEGIN_MESSAGE_MAP(CGotEvent, CDialog)
	ON_BN_CLICKED(IDOK, &CGotEvent::OnBnClickedOk)
	ON_BN_CLICKED(IDCANCEL, &CGotEvent::OnBnClickedCancel)
END_MESSAGE_MAP()


// CGotEvent message handlers


void CGotEvent::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	UpdateData();
	CDialog::OnOK();
}


void CGotEvent::OnBnClickedCancel()
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
}
